Skip to content

fix(release): publish to PyPI by correcting semantic-release output name#82

Merged
bartzbeielstein merged 1 commit into
mainfrom
fix/release-pypi-publish-gate
May 31, 2026
Merged

fix(release): publish to PyPI by correcting semantic-release output name#82
bartzbeielstein merged 1 commit into
mainfrom
fix/release-pypi-publish-gate

Conversation

@bartzbeielstein

Copy link
Copy Markdown
Contributor

Problem

spotoptim's release.yml gates the Publish to PyPI step on
steps.release.outputs.new-release-published, but
cycjimmy/semantic-release-action@v4 exposes its outputs with underscores
(new_release_published). The hyphenated reference is always empty, so the step
has been silently skipped on every release — which is why the 0.11.x/0.12.x
series never reached PyPI (latest there is 0.10.3) even though the GitHub
Releases carried the built wheels.

Fix

Reference the correct new_release_published output. This fix: commit itself
cuts the next patch (0.12.4), and the corrected workflow will publish it to
PyPI — restoring PyPI as a resolvable source for downstreams that pin recent
spotoptim (e.g. spotforecast2 >= 0.12.3).

0.12.4 includes the steady-state inverse_transform fix already merged in
0.12.3 (#81), so a single PyPI publish unblocks parallel SpotOptim tuning
end-to-end.

Requires PyPI trusted-publishing (OIDC) to be configured for the spotoptim
project + this workflow (id-token: write is already set). If the publish
step fails on auth, the trusted publisher must be registered on PyPI.

🤖 Generated with Claude Code

The "Publish to PyPI" step was gated on
``steps.release.outputs.new-release-published``, but
cycjimmy/semantic-release-action exposes its outputs with underscores
(``new_release_published``). The hyphenated reference was always empty, so
the step was silently skipped on every release — which is why the 0.11.x and
0.12.x series never reached PyPI (latest published there is 0.10.3) while the
GitHub Releases carried the wheels.

Use the correct ``new_release_published`` output so a released version is
actually uploaded to PyPI. This `fix:` commit itself cuts the next patch
(0.12.4), which the corrected workflow will publish — restoring PyPI as a
resolvable source for downstreams that pin recent spotoptim (e.g.
spotforecast2 >= 0.12.3).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bartzbeielstein bartzbeielstein merged commit b8cd8f4 into main May 31, 2026
4 checks passed
@bartzbeielstein bartzbeielstein deleted the fix/release-pypi-publish-gate branch June 4, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant